package world.snowcrystal.datasource;

import world.snowcrystal.model.entity.Picture;
import world.snowcrystal.model.enums.SearchTypeEnum;

public abstract class PictureDataSource implements DataSource<Picture> {


    @Override
    public boolean support(String dataType){
        return SearchTypeEnum.PICTURE.getValue().equals(dataType) && isDataSourceAvailable();
    }
    abstract boolean isDataSourceAvailable();

}
